<?php

namespace app\common\validate\Order;

use think\Validate;

// 商城订单产品表的验证器
class OrderProduct extends Validate
{
    protected $rule =   [
        'orderid'  => 'require',
        'proid'   => 'require',
        'pronum'   => 'require',
        'price'   => 'require',
        'total'   => 'require',
    ];

    protected $message  =   [
        'orderid.require' => '商品订单号必须填写',
        'proid.require' => '商品必须填写',
        'pronum.require'     => '商品数量必须填写',
        'price.require' => '商品单价必须填写',
        'total.require' => '商品总价必须填写',
    ];

}